package com.hnevc.listviewdemo;

import java.util.ArrayList;
import java.util.List;

import okhttp3.Cookie;
import okhttp3.CookieJar;
import okhttp3.HttpUrl;

/**
 * Created by Administrator on 2017/11/21.
 */

public class MycCookie implements CookieJar{

    private static List<Cookie> myCookies=new ArrayList<>();

    @Override
    public void saveFromResponse(HttpUrl url, List<Cookie> cookies) {
        myCookies=cookies;
    }

    @Override
    public List<Cookie> loadForRequest(HttpUrl url) {
        return myCookies;
    }
}
